import request from '@/router/axios';
// 签约客户的电子卡

export const getPage = (page, params) => {
  return request({
    url: '/api/uic-system/fillteamcard/page',
    method: 'get',
    params: {
      ...page,
      ...params,
    }
  })
}

export const apply = (form) => {
  return request({
    url: '/api/uic-system/fillteamcard/apply',
    method: 'post',
    data: {
      ...form,
    }
  })
}

export const remove = (id, teamId) => {
  return request({
    url: '/api/uic-system/fillteamcard/remove',
    method: 'post',
    data: {
      id,
      teamId
    }
  })
}

export const clearCardMoney = (id, teamId) => {
  return request({
    url: '/api/uic-system/fillteamcard/clearCardMoney',
    method: 'post',
    data: {
      teamId,
      id,
    }
  })
}

export const updatePwd = (form) => {
  return request({
    url: '/api/uic-system/fillteamcard/updatePwd',
    method: 'post',
    data: {
      ...form,
    }
  })
}

export const updateStatus = (form) => {
  return request({
    url: '/api/uic-system/fillteamcard/updateStatus',
    method: 'post',
    data: {
      ...form,
    }
  })
}

export const assignMoney = (form) => {
  return request({
    url: '/api/uic-system/fillteamcard/assignMoney',
    method: 'post',
    data: {
      ...form,
    }
  })
}

export const fillCardWaterRecordPage = (page, params) => {
  return request({
    url: '/api/uic-system/fillcardwaterrecord/page',
    method: 'get',
    params: {
      ...page,
      ...params,
    }
  })
}

export const bindShootCard = (form) => {
  return request({
    url: '/api/uic-system/fillteamcard/bindShootCard',
    method: 'post',
    data: {
      ...form
    }
  })
}

export const unBindShootCard = (form) => {
  return request({
    url: '/api/uic-system/fillteamcard/unBindShootCard',
    method: 'post',
    data: {
      ...form
    }
  })
}

export const modShootCardPassWord = (form) => {
  return request({
    url: '/api/uic-system/fillteamcard/modShootCardPassword',
    method: 'post',
    data: {
      ...form
    }
  })
}
